package com.android.project.framework.impl;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.Gravity;
import android.widget.Toast;

public class ToastHandler extends Handler{
	
	GLGame game;
	 
	
	public ToastHandler(GLGame game){
		super();
		this.game = game;
	
	}
	
	 @Override
	    public void handleMessage(Message msg)
	    {
		 
			 Context context = game.getApplicationContext();
             Toast t = Toast.makeText(context, (String)msg.obj, Toast.LENGTH_SHORT);
             t.setGravity(Gravity.CENTER, 0, 0);
             t.show();
	         super.handleMessage(msg);
		 
	      
            
	      
	 }
}
